<include file="Public/header.html" />
<link href="__PUBLIC__/css/edit.css" rel="stylesheet">
<script type="text/javascript" src='__PUBLIC__/edit/jquery-1.4.4.min.js'></script>
<script type="text/javascript" src="__PUBLIC__/edit/xheditor-1.1.14-zh-cn.min.js"></script>
<div class="content-body">
    <div class="title-box">
        <input type="text" id="txtTitle" maxlength="100" placeholder="输入文章标题">
    </div>
    <div>
        <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 90%"></textarea>
    </div>

    <div >
            <span >
                                <a class="btn btn-sm btn-red-hollow" >发布博客</a>
                            </span>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $('#elm1').xheditor({localUrlTest:/^https?:\/\/[^\/]*?(xheditor\.com)\//i,remoteImgSaveUrl:'saveremoteimg.php',shortcuts:{'ctrl+enter':submitForm}});
    });
    function submitForm(){$('#frmDemo').submit();}
   $('.btn-sm').click(function(){
       var str = $('#elm1').val();
       $.ajax({
           url:'editData',
           data:{str:str},
           type:'post',
           success:function(data){

           }
       });
   });
</script>

<include file="Public/footer.html" />
